import request from '@/utils/request'

// 获取商家列表
export function getShopList(params) {
  return request({
    url: '/system/acddShop/shopCooperatelist',
    method: 'get',
    params
  })
}

// 获取未添加的商家列表
export function getShopNotList(params) {
  return request({
    url: '/system/acddShop/shopNotCooperate',
    method: 'get',
    params
  })
}


// 新建商家
export function addShop(data) {
  return request({
    url: '/system/acddShopCooperate/addList',
    method: 'POST',
    data
  })
}

// 暂停/开启合同
export function controlShop(data) {
  return request({
    url: `/system/acddShopCooperate/pause`,
    method: 'post',
    data
  })
}

// 删除
export function delShop(id) {
  return request({
    url: `/system/acddShopCooperate/removeShopCooperate/${id}`,
    method: 'post'
  })
}

// 删除
export function getShopInfo() {
  return request({
    url: `/system/acddShop/getInfo`,
    method: 'get'
  })
}
